var e = require;
var t = module;
var n = exports;
var o,
    i =
        (this && this.__extends) ||
        ((o = function (e, t) {
            return (o =
                Object.setPrototypeOf ||
                ({__proto__: []} instanceof Array &&
                    function (e, t) {
                        e.__proto__ = t;
                    }) ||
                function (e, t) {
                    for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
                })(e, t);
        }),
        function (e, t) {
            function n() {
                this.constructor = e;
            }
            o(e, t), (e.prototype = null === t ? Object.create(t) : ((n.prototype = t.prototype), new n()));
        }),
    r =
        (this && this.__decorate) ||
        function (e, t, n, o) {
            var i,
                r = arguments.length,
                a = r < 3 ? t : null === o ? (o = Object.getOwnPropertyDescriptor(t, n)) : o;
            if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, n, o);
            else
                for (var s = e.length - 1; 0 <= s; s--)
                    (i = e[s]) && (a = (r < 3 ? i(a) : 3 < r ? i(t, n, a) : i(t, n)) || a);
            return 3 < r && a && Object.defineProperty(t, n, a), a;
        };
Object.defineProperty(n, "__esModule", {value: !0});
var a,
    s = cc._decorator,
    c = s.ccclass,
    t = s.property,
    s = s.menu,
    s =
        ((a = cc.Component),
        i(l, a),
        (l.prototype.onLoad = function () {
            var e = cc.view.getFrameSize(),
                t = e.width / e.height,
                e = this.canvas;
            t <= 750 / 1334 ? ((e.fitHeight = !1), (e.fitWidth = !0)) : ((e.fitHeight = !0), (e.fitWidth = !1));
        }),
        r([t(cc.Canvas)], l.prototype, "canvas", void 0),
        r([c, s("ext/screen-fit")], l));
function l() {
    var e = (null !== a && a.apply(this, arguments)) || this;
    return (e.canvas = null), e;
}
n.default = s;
